<template>
	<view class="content data-v-6293de1a">
		<view class="title_content data-v-6293de1a" :class="lastTrainInfo.executeNumber?'':'no_data'">
			<text class="title data-v-6293de1a" style="flex:flex: auto;margin-left:10rpx;">训练统计</text>
			<text class="arrow uni-icon data-v-6293de1a">全部统计▸</text>
		</view>
		<view class="scheme_item data-v-6293de1a" v-if="lastTrainInfo.executeNumber">
			<view class="train_time data-v-6293de1a">
				<view class="value BebasNeueBold data-v-6293de1a">{{lastTrainInfo.costTime}}</view>
				<view class="label data-v-6293de1a">训练时长</view>
			</view>
			<view class="train_size data-v-6293de1a">
				<view class="value BebasNeueBold data-v-6293de1a">{{lastTrainInfo.executeNumber}}</view>
				<view class="label data-v-6293de1a">训练次数</view>
			</view>
		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				lastTrainInfo: {
					executeNumber: '9',
					costTime: '06:34:24'
				}
			}
		},
		props: {
			trainInfo: {
				type: Object,
				default: {}
			},
		},
		methods: {

		},
	}
</script>

<style>
	.title.data-v-6293de1a {
		color: #000;
		font-size: 32rpx;
		font-weight: 700;
	}

	.name.data-v-6293de1a {
		margin-bottom: 9rpx;
		position: relative;
	}

	.train_times.data-v-6293de1a {
		align-items: center;
		display: flex;
		flex-direction: row;
		justify-content: center;
		position: absolute;
		right: 0rpx;
		top: 50%;
		transform: translateY(-50%);
	}

	.img.data-v-6293de1a {
		height: 28rpx;
		margin-right: 3rpx;
		width: 28rpx;
	}

	.location.data-v-6293de1a {
		margin-bottom: 8rpx;
	}

	.train-data.data-v-6293de1a {
		align-items: center;
		display: flex;
	}

	.time.data-v-6293de1a {
		margin-right: 40rpx;
	}

	.scheme_text_title.data-v-6293de1a {
		color: #000;
		font-size: 32rpx;
		font-weight: 700;
		max-width: 400rpx;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.scheme_text_time.data-v-6293de1a {
		color: rgba(0, 0, 0, 0.6);
		font-size: 24rpx;
	}

	.scheme_item.data-v-6293de1a {
		background-color: #fff;
		border-bottom-left-radius: 32rpx;
		border-bottom-right-radius: 32rpx;
		display: flex;
		flex: 1;
		margin-left: 24rpx;
		margin-right: 24rpx;
		padding: 10rpx 34rpx 34rpx;
	}

	.scheme_item .train_size.data-v-6293de1a,
	.scheme_item .train_time.data-v-6293de1a {
		border-radius: 20rpx;
		display: flex;
		flex: 1;
		flex-direction: column;
		padding: 32rpx;
	}

	.scheme_item .train_size .value.data-v-6293de1a,
	.scheme_item .train_time .value.data-v-6293de1a {
		font-size: 56rpx;
	}

	.scheme_item .train_size .label.data-v-6293de1a,
	.scheme_item .train_time .label.data-v-6293de1a {
		color: #9d9689;
		font-size: 28rpx;
	}

	.scheme_item .train_time.data-v-6293de1a {
		background-color: #fef2de;
		margin-right: 20rpx;
	}

	.scheme_item .train_size.data-v-6293de1a {
		background-color: #e2f0fe;
	}

	.scheme_item.data-v-6293de1a:active {
		background-color: #eee;
	}

	.content.data-v-6293de1a {
		display: flex;
		flex: 1;
		flex-direction: column;
		justify-content: center;
		padding-bottom: 30rpx;
	}

	.title_content.data-v-6293de1a {
		align-items: center;
		background-color: #fff;
		border-top-left-radius: 32rpx;
		border-top-right-radius: 32rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		margin-left: 24rpx;
		margin-right: 24rpx;
		margin-top: 28rpx;
		padding: 24rpx;
	}

	.title_content.no_data.data-v-6293de1a {
		border-radius: 32rpx;
	}

	.title_content.data-v-6293de1a:active {
		background-color: #eee;
	}

	.arrow.data-v-6293de1a {
		color: rgba(0, 0, 0, 0.467);
		font-size: 28rpx;
	}
</style>